Initializing vars correctly to avoid warnings messages