Inlined methods for clarity.