Added position logging