Added passing parameters to connection, cleaned up for release.