Changed init() to connect() because it makes more sense