Changed name on buildProfileMat method to buildProfileMatrix