Removed duplication in monkey_patch