Create clone_stock function which cleans up readability and seems to improve performance