Basic infrastructure for general simulation