Model layer and difference working