Added logic to create temp file for ho completion.