Fixed deprecated Connection based methods.