Added support for tying within the line, fixes #2, #3