Add GetCurrentLayer and SetCurrentLayer methods