This commit changes the functionality of create time handler and makes it much
more error proof and now works with only 2 inputs as opposed to 4.