Fixed problem with LET and variable output