Changes and fixes to make the plugin 1.8 compatible (Version 1.3.2)