Change order of console log