Add type as sync folder argument and modify ram allocation