Add datetime and dynamic load function