Removed l_ from my local vaiabels. Seemingly works