Placed code in lib/.