Rearranging instance function