Various ptimer fixes