Darn, procedural programming... doh!

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