Implemented some more api functions