New AMT APIs and add rating functionality