Finished Service, now fully reads parameters.
Added frequency variable.