Implemented fetch functionality