Adds option to use PostMessage. Not entirely tested and may not work, please review. Should resolve #7.