Modularized functions.