Fixed naming inconsistency and removed unused placeholder variable