Rewrote the coalmine extension