Added checking command existence