Reworked profiles example to simulate circular dependency