Moved the helper creation into a separate function