Now checks the connections and io are valid. Fixes #3