Types for backend