Model code is executing, but does nothing