Use a property instead of passing variables

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