Finished intake code