Keep functions pure by avoiding side effects wherever possible.