Sorry, take out the top line in the fix I posted earlier. By copying the alias function it ends up calling itself infinitely, causing the stack overflow error.
Thank you! It works perfectly now.