Added line finding and scanning methods in Staff.