Code formatted using Android Standards