Add onSight method
Fix string function
Improve tick error handling