Implement MDScript functions