Changed call to ProgramTimer.getCycles() to getTicks()