Final commit with a working function.