Adding the formula for absolute coordinates and some more logging for testing.