Actally use device parameters and not hard coded value
Correct typo