Added function to line 16