Added location API support.