Please use lockPointer instead of doLockPointer etc. to be more in line with the rest of the code.