Added time() method