http://pastebin.com/pTdFxKLK