Changed to Java 1.6 syntax for Android Compatibility