Moved namespaces to top of file for clarity.