Move text method outside of whistle method.