Improve extends method.