Tidies code, since sb is not passed up the call stack removes redundant emptying of it