Move into defined function