Tidying up code a little.

Signed-off-by: Ben Corlett <bencorlett@me.com>