Added a global medium type and related code