Modifications in timer API