Added panel definition. Added hooks.