Move executing code to functions_read