More accurate projection function.