I had a problem with RCTIME. Suggest you add a pause after rctime. It gives processor time to finish rctime before moving onto the next line of code.