Removed unused vars that were causing an error.