increased memory limit
fixed checking for maximum time value