Removed repeated function