Updated to Hama code style