Added first proper functions.