Moved code to its own directory.