Added ability to approve and fixed working directory