Added displacement offset into calculations