Replaced offset statements with goto statements