Added traversal for /top. Moved donation to dictionary method to a free function