Moved implementation code to source files.