More work on model.

Signed-off-by: Ivan Fabijanovic <ivan-fabijanovic@live.com>