Some little helper program codes.