Minor changes to APIServicej.ava