Initial commit with few common functions