Let some of the code can be reused.