Swap connect and setting callback