Add return code in _deploy() method