Cleaned console examples. Works the same but with less code.