Draft of helper functions.