http://mikyd-1.wix.com/g-mode