Wrote helper methods