Added restriction for getExtraInfo

Closes #1175