Properly attachs static methods.