Finished current helper functions to best of ability.