Moved package into it's own function.