Edited model code.