Added entity.offset function.