Cleaned version of the PTAM simulation