Unused variable warning removed