This might lead to some race conditions
Couldn't this be in setup ?