Changed source level to Java6 in order to be able to port to Android later.