Tested function for single lines