-Refactored table start and slot time into separate function.