Added variable to hold temp directory