Attempted to integrate logic for stage directions