Complete function

That was fun. lol