Removing Code duplication for fred