Fixed printOutput