There should be a faster way...