Reliability improved: counter changed from unsigned int to int
Added access to remaining cycles