Finished up selecting code