Before add IRP functions