Little refactoring of connect and parameter checkerMethod