Generalized modelreading function