Updated unit to use context

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