Cleaned up appendix