Close to working version, need to add time checks
Adding flowdirection_small. Still need time logic