Added > /dev/null 2>&1 statements in main function to clean up output