Changed request lib to be synchronous