Initial code and setting