Implementation for mamba language