Fixed syntax on function