In the middle of figuring out the functions