Removed plenty of unused variables, thx to @jsteemann for writing jshund. Helped me find those