Removed magic number from offset calculation.