Refactored ''get recent assets'' for better handling in the sync script
Script now exits when done