Move path check out of tlns
Added slns functionality, changed some stuff