Fixed missing semicolon
Modifications for Windows
Delete temporary file