rename freq to period which is more correct, patch by Niobos, niobos dot be at gmail...