Added functions which return an integer