Set Global as a static class. Will work on offset calculation function.