Adding old code from other projects.