Console code