Removed intermediate file generation. It was for debugging purposes.