Prepare properties code