Added a function that I by misstake had removed