Simplified shift procedure
Added integrating function