Initial behavior code
Fixing code to conform to the CakePHP coding standard