I think some arithmetic can simplify this..