Add HAL to code
Add small changes to HAL