#660 Updated addVaraible to use deferred