Add some like-Java functions