Before shift
Final version!