Added sleeps

Needed to add sleeps since kill were coming too quickly for the processes