Removed the dependency on the old profile api.