Making it possible to apply when to objects too