Flesh out final major function