Adding features_ref to functions, added timer functionality