Correctly work out position