Don't need threading
Set repeat rate by parameter