Separated out private methods