Refactore decoding
activate the schedule functionality
schedule works