Updated for Max 6.1.4 SDK.