Broke out some logic