Working on calculating offsets for functions and objects