All functions working. Code reviewed.