Removed size_of and moved devices into namespace.