Added dictionary definition to prevent the error.