Create function + store original code