Nearly 520 people were jailed