I feel like this could be written more optimized.