Added top functions.
Clean up.