Added time and cookie handling.