New function to get Nth line after a marker