Added misc functions