Initial implementation for mongoose