The disclosures herein relate to novel compounds of formula wherein W, X and Y1, Y2, Y3 and Y4 are defined herein, and their use in treating, preventing, ameliorating, controlling or reducing the risk of neurological or psychiatric disorders associated with orexin receptors.