After setting a new delegate, initialize some important vars