Remove merge_sleep and add compact. #792