SMS: Towards a general theory of accounting.