Updated snippet for new init