Misc methods.