Changed mainHeight to use the lineMultiplier as a point of reference.