Updated util with date/time features and cookie support.