Implement migrations and add functional processing.