Added command's parameters inspection, changed error-checking function