Add support for synchronized methods