Removed ProfileMatrix function