Added support for setting timeouts (Issue #14)