Refactored away some wacky ways to handle meshes.