Implementation of simple_functions