Implemented default algorithm