Hook up modal variables.