Update resources management
Remove temporary file