WIP Moving out yui functions into a separate file.