Added sending frequency code to main.