Add support for Api 8

Fix #1
I've reverted the version and changed the tabs to spaces :)