Added simple implementation to the api functions