Move status creation outside of for loop.