Removed debugging from time function