Improved tailer. Needs testing and bugfixing.