Added remaining functions for command execution.