Break for the day. Still need to work on the second function.