Added getMOAILayer function