http://pastebin.com/rWvtdGTk