Added further misc functions