Added basic frequency storing; fixed interaction of frequency inputs