Implemented a first version of profileRelative()