Added the ability to perform handshakes on actions before they are executed