• I think something is missing. It is telling me that I must declare @LASTCOMMAND as well.