Are you trying to have two separate parts of the program execute at the same time? Using Threads would help you do that.