Move suggestions code into core/functions