Is there not a more time efficient way of doing this?