Added check for individual function attributes if the functions aren't technically the same type