Some codes for testing purpose.