I'm trying to get started on the CK for Skyrim and while I have plenty of experience modding and scripting I can't for the life of me find out how the sleep form is controlled. My plan is to have the player sleep for an amount of time determined by how long they've gone without sleep (which I am figuring out now), first by displaying a message box loosely suggesting how long they will be asleep for. The other plan is to be able to pick up bed rolls by presenting an extra option on top of 'sleep' after the user activates. From what I've been able to gather to accomplish the bedroll picking up I will need to create a perk to add an activation option and give it to the player?
Just curious if I'm on the right track

Thanks guys.