Start to think about the physics, broke some stuff out to a common file.