Added timeouts to gen_server calls