1. Skeleton code written for parallelization
2. TODO: check waiting code