Performing of algorithm