Copy and paste from logan
Updated for wyong