Realised I misinterpreted the -l flag. Fixed the logic.