Changed patch functionality. Not using .sh - the modules will be committed after patches applied