Move helpers to standalone functions (instead of on prototype)