Completed implementation of the -l flag functionality.
Fixed some issues with correctly evaluating the flag macros.