Updated data reading software, planning functions and action function