Fixed variable error added new stuff.