Add loop function for fish