Tidied up the gist thing.