Appendix 1: Action matrix