PTIME function to align profiles