Removed debugging stuff.
Added wakelock permission.