Add process_volume and main function