Uses timer library from Arduino Forum