De-composing into smaller functions