Added some pre-start calculation functions