Switches to sapply
Removes non used helper for test connection