Hat events implemented. Beta depth/diff control added.