Modified helpers so they can be used within controllers too.