Added proper metrics initialization through profile.