One function to rule em all done, excluding encore.