Methods in Switchmethod and giantswitch