Wrap functions in a 'local' so that they don't clutter the workspace