Oh.. nevermind. I hadn't initialised timer_id to 0 in the constructor and so it was a junk value... :s