Add sleep and maxla feature