Fixed bug in TIMEOUT settings. Added input parameter for END_TIME and
basic exception handling.