Adding latest a4 work, with w(somewhat) working handle_miss() function.