Implemented better method for processing LET.
Removed function that is no longer needed.