ADDED dynamic bc_limit code
added drift clock outline code (functions code not yet implemented)