Application concept Validation

Are you sure this is the exact code, 'cause your setup and loop look a little ‘funny’?