Added check for output