Started changing prints to returns for web app functionality.