Two functions implemented