Basic function implemented.