Fixed the functions