Corrected Console build code + added endSession when pressed q