Made the Connection class better injectable.