Removed conversion time->int - it was only used for debug purposes