Updated model to use context

Signed-off-by: Tom Wright <tom@inflatablecookie.com>