Proper configuration and initialization

Signed-off-by: Sergio Castelani <sergio.castelani@gmail.com>