Added code functions