Added empty commands handling.