Added ability to change timeout time from config