Fix #31: Move functions to separated project.