Fixed bug in reversed function statement order, added array access
Merged