The primary purpose of the slave codes was to