Method Replacement Code