Removed direct usage of BOAST state
Added function declarations