Script for reading code automatically