Add data to queuee

Yes reframwork in the if function as u said