Removed debug code
Fixed flash