Model layer.