Modification of code in model