Added new hook variables and command hooks