Added a time check for side determination