Fix not working, and refactor

:(
Useless assignment to variable - `instance_type`.