Added Hook functionality