Implemented future based solution