Moved API to a separate directory.