Fixing unused variable error