Adding getLastModified method