Updates to connect_to_REST