Create get patch function to fix issue #9