Added function to this file; wil rename it