Add RefreshLine function
Add CatchSignals function