Really fixed that error. Played with troubleshooting max_time function.