Some unused and some missing globals - thanks @Nao for the script

Signed-off-by: emanuele <emanuele45@gmail.com>
looks better this way

Signed-off-by: emanuele <emanuele45@gmail.com>