Added APIs and set up things