Added getLineNumber function.