Cpw said this isn't the best way of doing it