Completed the function