Miscellaneous additions; func