Removed unused variable from functions.